<template>
  <div><div class="x" :id="id" @click="update">修改价格</div></div>
</template>

<script>
export default {
  props: {
    id: "",
  },
  methods: {
    update() {
      const id = this.id;
      this.$emit("getid", id);
    },
  },
};
</script>

<style scoped>
</style>